<?php include_once("../../../common/common_setting_unit.php");         // 引入通用的设置文件 ?>
<?php include_once(ROOT_PATH_ . "/controller/common/module/head.php"); // 引入通用的头部 ?>
<?php include_once("../controller/extender_list.php");                     // 当前页面的控制器 ?>



<body>

<!--顶部栏-->
<div id="topbar"> <?php include ROOT_PATH_ . '/controller/common/module/topbar.php'; ?></div>

<!--容器-->
<div id="container" class="<? echo $now_extender ?>">


    <!--侧边栏-->
    <div id="sidebar"><?php include ROOT_PATH_ . '/controller/common/module/sidebar.php'; ?></div>





    <?
        //==============================================================================
        //这里开始才是平常开发需要注重的部分，其余的基本不用理会
        //==============================================================================
    ?>

    <div id="content" class="layui-form">
        <?php $page_title='所有应用';?>
        <?php include ROOT_PATH_ . '/controller/common/module/mod-page-title.php'; ?>


                <blockquote class="layui-elem-quote">基础设置多数是对外使用的资料，请细心填写。</blockquote>
            <br/>



        <div class="static">
            <?foreach ($plate as $key=>$value){?>
            <div class="box">
                <h6><?echo $value['icon']?>  <?echo $value['name']?>
</h6>
                <hr class="layui-bg-green">
                <div class="content els2">
                    <?echo $value['introduce']?>
                </div>
                <div class="extender_list">
                <?foreach ($value['sidebar'] as $key2=>$value2){?>
                    <a href="/controller/extender/<?echo $value['folder'].'/'.$value2['url']?>" class="layui-btn layui-btn-primary layui-btn-xs">
                        <?echo $value2['name']?>
                    </a>
                    <?;}?>
                </div>
                <div class="function">
                    <div><span>侧边栏显示</span>
                        <span class="layui-badge <?if(($value['setting']['sidebar_show']=='显示')or($value['setting']['sidebar_show']=='')){echo 'layui-bg-green';}?>">
                            <? if($value['setting']['sidebar_show']==''){echo '未设置';}else{echo $value['setting']['sidebar_show'];}?>
                        </span>
                    </div>

                    <div><span>开发状态</span>    <span class="layui-badge <?if($value['status']=='public'){echo 'layui-bg-green';}?>"><?echo $value['status']?></span> </div>

                </div>
            </div>
                <?;}?>
        </div>



            <!--content端點01-->
        </div>
        <br class="clearfloat"/>
    </div>
    <?
        //==============================================================================
        //这里上面才是平常开发需要注重的部分，下面的基本不用理会，只有底部JS部分需要根据实际情况去加载
        //==============================================================================
    ?>





    <br class="clearfloat"/>
    <!--container-->
</div>




<!--底部栏-->
<?php include ROOT_PATH_ . "/controller/common/module/footer.php"; ?>





<script>
    //layui渲染过的元素，需要在这里写函数

    layui.use('form', function(){
        var form = layui.form;

        //layui中，处理checkbox
        check_all_checkbox(form)

        //监控复选框，选择一个就触发删除按钮
        mulity_delete_button(form)


    });
</script>




</body>
</html>
